﻿#include "CmdLineChartChangeLineProperty.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdLineChartChangeLineProperty::CmdLineChartChangeLineProperty()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdLineChartChangeLineProperty::~CmdLineChartChangeLineProperty()
    {
    }

    bool CmdLineChartChangeLineProperty::execute()
    {
        bool _success = false;
        emit IBaseSignalInstance->signal_lineChartChangeLineProperty(m_windowUniversalID, m_curveInfoID, m_docStr);
        return _success;
    }

    void CmdLineChartChangeLineProperty::undo()
    {
        // TODO: undo
    }

    void CmdLineChartChangeLineProperty::redo()
    {
        execute();
    }

} // namespace PostCommand
